home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / codecs / drawtextcodec / drawtextcodec.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.6 KB  |  68 lines

  1. /*
  2.     File:        DrawTextCodec.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by: Mark Krueger    
  7.  
  8.     Copyright:    Copyright © 1992-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 7/29/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23.  
  24. #define COURIER
  25.  
  26.  
  27. #ifdef    COURIER
  28.  
  29. #define    BASE_LINE    8
  30. #define    FONT_ID        22        
  31. #define    FONT_SIZE    10
  32. #define    FONT_HEIGHT    10
  33. #define    FONT_WIDTH    8
  34. #define    CODEC_NAME    "\pCourier"
  35.  
  36. #else
  37.  
  38.     // Monaco
  39.     
  40. #define    BASE_LINE    7
  41. #define    FONT_ID        4        
  42. #define    FONT_SIZE    12
  43. #define    FONT_HEIGHT    12
  44. #define    FONT_WIDTH    8
  45. #define    CODEC_NAME    "\pMonaco"
  46.  
  47. #endif
  48.  
  49.  
  50. /* This is the structure we use to hold data used by all instances of
  51.    this compressor and decompressor */
  52.  
  53. typedef struct    {                    
  54.     CodecInfo    **info;                    /* our cached codec info structure */
  55.     GWorldPtr    tableWorld;
  56.     char        *table;
  57.     Boolean        skipTable[256];            // not used 
  58. } SharedGlobals;
  59.  
  60.  
  61. /* This is the structure we use to store our global data for each instance */
  62.  
  63. typedef struct    {                        
  64.     SharedGlobals    *sharedGlob;        /* pointer to instance-shared globals */
  65.     long        totalSize;
  66.     ComponentInstance self;
  67. } Globals;
  68.